package edu.bbu.commonproject.desktop.client.services.thrift.files;

import java.io.Serializable;

/**
 * The socket receip class.
 */
public class SocketReceip implements Serializable
{
	/** The serial version. */
	private static final long serialVersionUID = 8349033506555602167L;
	
	/** The OK status. */
	public static final int OK = 1;
	
	/** The ERROR status. */
	public static final int ERROR = 0;
	
	private int status;
	
	/**
	 * The constructor.
	 * @param status the receip status can be SocketReceip.OK or SocketReceip.ERROR.
	 */
	public SocketReceip(int status)
	{
		this.status = status;
	}
	
	/**
	 * It sets the current status.
	 * @param status the receip status can be SocketReceip.OK or SocketReceip.ERROR.
	 */
	public void setStatus(int status)
	{
		this.status = status;
	}
	
	/**
	 * Returns the Status.
	 * @return it return the status.
	 */
	public int getStatus()
	{
		return status;
	}
}

